// 文件路径：src/main/java/cn/practice/service/result/ImportResult.java

package cn.practice.service.result;

import cn.practice.listener.StudentReadListener;
import lombok.Data;

import java.util.List;

@Data
public class ImportResult {
    private int total;
    private int successCount;
    private int errorCount;
    private List<StudentReadListener.ImportError> errors;

    public ImportResult(List<StudentReadListener.ImportError> errors, int total) {
        this.errors = errors;
        this.total = total;
        this.errorCount = errors.size();
        this.successCount = total - errorCount;
    }
}